package cn.itcast.foodapp2.bean;

import java.util.List;

public class CommentsListBean {

    /**
     * msg : 成功
     * data : [{"id":14,"comment":"demoData","foodId":1,"postDate":"2020-09-24 09:09:03","userId":1},{"id":23,"comment":"评论内容","foodId":1,"postDate":"2019-09-09 12:00:00","userId":1}]
     * success : true
     */

    private String msg;
    private boolean success;
    private List<DataDTO> data;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public List<DataDTO> getData() {
        return data;
    }

    public void setData(List<DataDTO> data) {
        this.data = data;
    }

    public static class DataDTO {
        /**
         * id : 14
         * comment : demoData
         * foodId : 1
         * postDate : 2020-09-24 09:09:03
         * userId : 1
         */

        private int id;
        private String comment;
        private int foodId;
        private String postDate;
        private int userId;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getComment() {
            return comment;
        }

        public void setComment(String comment) {
            this.comment = comment;
        }

        public int getFoodId() {
            return foodId;
        }

        public void setFoodId(int foodId) {
            this.foodId = foodId;
        }

        public String getPostDate() {
            return postDate;
        }

        public void setPostDate(String postDate) {
            this.postDate = postDate;
        }

        public int getUserId() {
            return userId;
        }

        public void setUserId(int userId) {
            this.userId = userId;
        }
    }
}
